package fun.cyhgraph.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 购物车
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Cart implements Serializable {

    private Integer id;
    private String name;  //名称
    private Integer userId;  //用户id
    private Integer dishId;  //菜品id
    private Integer setmealId;  //套餐id
    private String dishFlavor;  //菜品口味
    private Integer number;  // 数量
    private BigDecimal amount;  //金额
    private String pic;  //图片
    private LocalDateTime createTime;  //创建时间

}
